home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-12-29 | 772 b | 47 lines | [TEXT/PTM1] |
- /*
- GEnie AutoScan macro for ProTERM
-
- To use this macro, add the command: EXTERN(":Macros:Macro.Delphi",main());
- to the end of your Delphi logon macro, prior to the END; command.
- */
-
- INT mail;
-
- mail = WT("No Letters","Letter Waiting","Letters Waiting");
- WT("continue>");
-
- IF (mail > 1) {
- PR("m200;2^m");
- PROMPT("help>");
- }
-
- PR("m605;1^m");
- PROMPT("1 >");
- PR("top^m");
- PROMPT("1 >");
- PR("read all new noreply^m");
- PROMPT("1 >");
- //
- // ...add your own forum access commands here...
- //
- PR("bye^m");
- RETURN();
-
-
- //
- // special function to detect a prompt
- //
- // waits for a prompt character followed by "no activity"
- // to avoid detecting the prompt within a stream of data.
- //
-
- FUNC prompt(STR text)
- {
- WHILE(1) {
- WT(700, text);
- IF (!WT(200,"")) { BREAK; }
- }
- RETURN;
- }
-
-